import request from '@/utils/request';
const baseUrl = '/api/interview-record';
export default {
    // 获取列表
    getList(params) {
        return request({
            url: `${baseUrl}/list`,
            method: 'get',
            params
        });
    },

    // 获取详情
    getDetail(id) {
        return request({
            url: `${baseUrl}/view/${id}`,
            method: 'get'
        });
    },

    // 保存
    save(data) {
        return request({
            url: `${baseUrl}/save`,
            method: 'post',
            data
        });
    },

    // 删除
    delete(id) {
        return request({
            url: `${baseUrl}/delete/${id}`,
            method: 'delete'
        });
    }
}; 